package com.richest.api.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.richest.api.dao.DictionaryTypeMapper;
import com.richest.api.service.IDictionaryTypeService;
import com.richest.bean.DictionaryTypeBean;

/**
 * 字典类型业务服务实现
 * 
 * @author 杨博
 * @version richest-api 2.0
 */
@Service
public class DictionaryTypeServiceImpl implements IDictionaryTypeService {

	@Autowired
	private DictionaryTypeMapper mapper;

	@Override
	public Integer dictionaryTypeAdd(DictionaryTypeBean bean) {
		return mapper.dictionaryTypeAdd(bean);
	}

	@Override
	public Integer dictionaryTypeUpdate(DictionaryTypeBean bean) {
		return mapper.dictionaryTypeUpdate(bean);
	}

	@Override
	public Integer dictionaryTypeDelete(Long id) {
		return mapper.dictionaryTypeDelete(id);
	}

	@Override
	public DictionaryTypeBean dictionaryTypeSelectOne(Long id) {
		return mapper.dictionaryTypeSelectOne(id);
	}

	@Override
	public List<Map<String, Object>> dictionaryTypeSelectMap(Map<String, Object> params) {
		return mapper.dictionaryTypeSelectMap(params);
	}
}
